﻿using System;
using SqlSugar;
using YL.Utils.Extensions;

namespace YL.Core.Entity
{
    [SugarTable("whr_notification")]
    public class Whr_notification
    {
        /// <summary>
        /// 通知id
        /// </summary>
        [SugarColumn(ColumnName = "id", IsPrimaryKey = true)]
        public int NotificationId { get; set; }
        
        /// <summary>
        /// 通知类型
        /// </summary>
        [SugarColumn(ColumnName = "category_id")]
        public int CategoryId { get; set; }
        
        /// <summary>
        /// 标题
        /// </summary>
        [SugarColumn(ColumnName = "title")]
        public String Title { get; set; }
        
        /// <summary>
        /// 摘要
        /// </summary>
        [SugarColumn(ColumnName = "summary")]
        public String Summary { get; set; }
        
        /// <summary>
        /// 内容
        /// </summary>
        [SugarColumn(ColumnName = "content")]
        public String Content { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        [SugarColumn(ColumnName = "create_at")]
        public int CreateAt { get; set; } = DateTimeExt.GetUnixTimestamp();

        /// <summary>
        /// 是否定时发布
        /// </summary>
        [SugarColumn(ColumnName = "if_schedule")]
        public byte IfSchedule { get; set; }

        /// <summary>
        /// 发布时间
        /// </summary>
        [SugarColumn(ColumnName = "send_time")]
        public int SendTime { get; set; }
        
        /// <summary>
        /// 撤回时间
        /// </summary>
        [SugarColumn(ColumnName = "cancel_time")]
        public int CancelTime { get; set; }
        
        /// <summary>
        /// 撤回时间
        /// </summary>
        [SugarColumn(ColumnName = "delete_time")]
        public int DeleteTime { get; set; }

    }
}
